---
id: session
title: "session"
slug: session
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Returns the session data, if there is an active session.



















## Examples

### Get user



<Tabs
  defaultValue="js"
  groupId="libraries"
  values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>

<TabItem value="js">

```js
const session = auth.session()
```


</TabItem>
<TabItem value="py">


```
Not yet implemented
```


</TabItem>

</Tabs>